﻿# CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.8)





project(FrameWork LANGUAGES C CXX)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/CMake)

set(CMAKE_INCLUDE_CURRENT_DIR ON)




if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
    set(SYSTEM_NAME Win32)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
    set(SYSTEM_NAME MacOS)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
    set(SYSTEM_NAME Linux)
endif()
message(STATUS "[${PROJECT_NAME}] " System:${SYSTEM_NAME})
##################### 操作平台设置
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
    set(BUILD_PLATFORM x64)
else()
    set(BUILD_PLATFORM x86)
endif()


# default RelWithDebInfo
if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Debug)
endif()
##############设置路径变量参数
set(PREFIX_DIR "Build/${SYSTEM_NAME}/${BUILD_PLATFORM}/${CMAKE_BUILD_TYPE}")

message(STATUS "[${PROJECT_NAME}] PREFIX_DIR:${PREFIX_DIR}")

include(LoadQtConfig)



# 包含子项目。
add_subdirectory ("HelperFunc")

add_subdirectory("Media")

add_subdirectory("MainWindow")


